import { getToken } from "@/utils/cache/cookies"
import { request } from "@/utils/request"
// import { getToken } from "@/utils/cache/cookies"

export function getLargeModelToken() {
  // https://aip.baidubce.com
  return request({
    url: "/v1.0/large-model/getLargeModelToken",
    method: "get"
  })
}

export function getResult(data: any) {
  debugger
  return request({
    url: "/v1.0/large-model/getResult",
    method: "post",
    params: data,
    headers: {
      "Content-Type": "application/json",
      Authorization: `Bearer ${getToken()}`
    }
  })
}
